* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #f9f7fe 0%, #eef2ff 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
    z-index: -1;
    border-radius: 0 0 50% 50%/0 0 100px 100px;
}

.container {
    max-width: 1100px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 40px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.8rem;
    color: #2d3748;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

header h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #a1c4fd, #c2e9fb);
    border-radius: 2px;
}

.tagline {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 600px;
    margin: 20px auto 0;
    font-weight: 300;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 30px 0;
}

.profile-section {
    flex: 1;
    min-width: 300px;
}

.profile-pic-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 5px solid white;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-pic-container:hover .profile-pic {
    transform: scale(1.05);
}

.bio {
    background: #f8f9ff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.bio h2 {
    color: #2b6cb0;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.bio p {
    margin-bottom: 15px;
    color: #4a5568;
}

.details-section {
    flex: 2;
    min-width: 300px;
}

.section-title {
    font-size: 1.8rem;
    color: #2b6cb0;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ebf4ff;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #a1c4fd, #c2e9fb);
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.skill-item {
    background: #ebf4ff;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.95rem;
    color: #2b6cb0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: #d6e6ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.gallery-item {
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.timeline {
    position: relative;
    margin: 40px 0;
    padding-left: 30px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, #a1c4fd, #c2e9fb);
    border-radius: 2px;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -38px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4299e1;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #a1c4fd;
}

.timeline-date {
    font-weight: 600;
    color: #2b6cb0;
    margin-bottom: 5px;
}

.timeline-content {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.contact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f8f9ff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #ebf4ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
    color: white;
    border-radius: 50%;
    font-weight: bold;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    color: #718096;
    font-size: 0.9rem;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .container {
        padding: 25px;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .profile-pic-container {
        width: 220px;
        height: 220px;
    }
}


/* 遮罩层样式 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: zoom-out;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.overlay.active img {
    transform: scale(1);
}

/* 防止滚动时背景晃动 */
body.overlay-open {
    overflow: hidden;
}


/* 联系方式容器显示图片 */
.picture-item {
    position: relative; /* 为二维码定位做准备 */
}

/* 二维码样式 */
.picture-qrcode {
    position: absolute;
    bottom: 100%; /* 显示在元素上方 */
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px; /* 与下方元素保持距离 */
    padding: 5px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10; /* 确保显示在其他内容上方 */
    display: none; /* 默认隐藏 */
}

/* 二维码图片样式 */
.picture-qrcode img {
    width: 150px;
    height: 150px;
}

/* 悬停时显示二维码 */
.picture-item:hover .picture-qrcode {
    display: block;
}

/* 可选：添加小三角指示 */
.picture-qrcode::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}